-- GENERATED SPELL FOR [Drakuru's Guard] --


function spell0_28803(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(50420,pUnit)
pUnit:RegisterEvent('Sorts_28803', 592, 1)
end

function spell1_28803(pUnit, Event) --@Withering Strike,n/a--
pUnit:FullCastSpellOnTarget(54345,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28803', 4330, 1)
end

function Sorts_28803(pUnit, Event)
local choix_sorts_28803 = math.random(0, 1)
if choix_sorts_28803 == 0 then
pUnit:RegisterEvent('spell0_28803', 1, 1)
end
if choix_sorts_28803 == 1 then
pUnit:RegisterEvent('spell1_28803', 1, 1)
end
end

function mob28803_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28803', math.random(1500, 3000), 1)
end

function mob28803_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28803_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28803_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28803, 1, 'mob28803_Action')
RegisterUnitEvent(28803, 2, 'mob28803_Leave')
RegisterUnitEvent(28803, 3, 'mob28803_Kill')
RegisterUnitEvent(28803, 4, 'mob28803_Die')
